/**
 * 首页
 */
import React, { Component } from "react";
import { Link } from "react-router-dom";
import Styles from "./index.less";
import Logo from "@/assets/logo.svg";
import HelloWorld from "@/components/HelloWorld";
export default class Home extends Component {
    constructor() {
        super();
        const that = this;
        that.state = {
            title: "首页"
        };
    }
    render() {
        return (
            <div className={Styles["m-home"]}>
                <h2 className={Styles["u-title"]}>{this.state.title}</h2>
                <Link to="/about">关于</Link>
                <Link to="/blank">blank</Link>
                <img src={Logo} alt="logo" className={Styles["u-logo"]} />
                <HelloWorld msg="Hello,World!"></HelloWorld>
            </div>
        );
    }
}
